package org.credo.thread.BlockingQueue;

import java.util.concurrent.ArrayBlockingQueue;
import java.util.concurrent.BlockingQueue;

public class SmallTest {

	public static void main(String[] args) throws InterruptedException {
		BlockingQueue<String> bq=new ArrayBlockingQueue<>(2);
		System.out.println("1");
		bq.put("java");
		System.out.println("2");
		bq.put("C++");
		System.out.println("3");
		bq.put("C#");
		System.out.println("4");
	}

}
